<!DOCTYPE html>
<html>

	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>H+ 后台主题UI框架 - 空白页</title>
		<meta name="keywords" content="">
		<meta name="description" content="">

		<link rel="shortcut icon" href="../favicon.ico">
		<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
		<link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
		<!-- jqgrid-->
		<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
		<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
		<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
		<link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
		<link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
		<script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
		<script src="__STATIC__/sc/js/page.js"></script>
	</head>

	<body style="color:#333;padding:3px;">
		<!-- 标题 -->
		<div class="page-heade clearfix">
			<h1 class="clearfix"><a class="col-md-6 title_color H_right H_active" id="Ap1" style="display: inline-block;font-size: 20px" href="{:url('kucun1')}">库存-分仓查询</a> <a class="col-md-6 title_color"  id="Ap2" style="color:#333;font-size: 20px;display: inline-block;" href="{:url('kucun2')}">库存-不分仓查询</a></h1>
		</div>
		<!-- 标题 -->
		<div>
			<form action="#" method="post" id="form_check" class="form-inline formpage">
				<input type="hidden" value='{$page}' name="page" id="page-go" />
				<input type="hidden" value='{$list}' name="list" id="list-go" />
				<table class="row-margin-top tab-content table-bordered table" border="1">
					<tr>
						<td style="min-width: 120px;width: 120px"><label for="" class="form-label">物料编号：</label></td>
						<td><input type="text" class="form-control" name="wlbh" value="{$data.wlbh}"></td>
						<td style="min-width: 120px;width: 120px"><label for="" class="form-label">物料名称：</label></td>
						<td><input type="text" class="form-control" name="wlmc" value="{$data.wlmc}"></td>
						<td style="min-width: 120px;width: 120px"><label for="" class="form-label">物料类型：</label></td>
						<td>
							<select name="wt" id="" class="form-control">
								<option value="0" {if $data.wt==0}selected {/if}>全部</option>
								<option value='1' {if $data.wt==1}selected {/if}>生产物料</option>
								<option value='2' {if $data.wt==2}selected {/if}>销售物料</option>
								<option value='3' {if $data.wt==3}selected {/if}>成品</option>
							</select>
						</td>
					</tr>
					<tr>
						<td style="min-width: 120px;width: 120px"><label for="" class="form-label">产品品类：</label></td>
						<td><input type="text" class="form-control" name="cppl" value="{$data.cppl}"></td>
						<td style="min-width: 120px;width: 120px"><label for="" class="form-label">仓库：</label></td>
						<td colspan="3">
							<select name="ck" id="" class="form-control">
								<option value="0" {if $data.ck==0} selected {/if}>全部</option>
								{volist name="canku" id="c"}
								<option value="{$c.id}" {if $data.ck==$c.id} selected {/if}>{$c.ckqc}</option>
								{/volist}
							</select>
						</td>
					</tr>
					<tr>
						<td colspan="6" class="text-center">
							<button class="btn btn-info btn-sm query" type="button" id="check">查询</button>
							<button class="btn btn-info btn-sm emptyIf" type="button" id="clear_check">清空查询条件</button>
						</td>
					</tr>
				</table>

				<table class="table row-margin-top table-bordered text-center bud_hei">
					<tr class="info text-center">
						<th class="text-center">NO.</th>
						<th class="text-center">仓库</th>
						<th class="text-center">物料类型</th>
						<th class="text-center">产品品类</th>
						<th class="text-center">物料编号</th>
						<th class="text-center">物料名称</th>
						<th class="text-center">规格</th>
						<th class="text-center">单位</th>
						<th class="text-center">库存数量</th>
					</tr>
					{volist name="apply" id="vo"}
					<tr>
						<td>{$i}</td>
						<td>{$vo.ckqc}</td>
						<td>{$vo.wllb}</td>
						<td>{$vo.cppl}</td>
						<td>{$vo.wlbh}</td>
						<td class="text-left">{$vo.wlmc}</td>
						<td>{$vo.gg}</td>
						<td>{$vo.kcdw}</td>
						<td class="text-right">{$vo.kcsl}</td>
					</tr>
					{/volist}
				</table>
				 	<h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            			<script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                        </script>
                        	每页显示
           				<select id="pagesize">
                        	<option value='10' {if condition="$list eq 10"}selected{/if}>10条</option>
                        	<option value='20'{if condition="$list eq 20"}selected{/if}>20条</option>
                        	<option value='40'{if condition="$list eq 40"}selected{/if}>40条</option>

            			</select>
        			</h5>
			</form>
		</div>
		<!-- 全局js -->
		<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
		<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
		<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<script src="__STATIC__/layout/js/common.js"></script>
		<script>
		
			$("#check").click(function() {

				$(".formpage").submit();
			})
			$("#clear_check").click(function() {
				$("input[type='text']").val("");
				$("select").val(0);
				$(".formpage").submit();
			})

			$(document).ready(function() {
				var $ObjectNum = $(".ObjectNum");
				toNum($ObjectNum);
			})
		</script>
	</body>

</html>